package com.sykj.qianxuezhan.server.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sykj.qianxuezhan.bean.NurseProject;
import com.sykj.qianxuezhan.mapper.NurseProjectMapper;
import com.sykj.qianxuezhan.server.NursePeojectService;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author QianXuezhan
 * @Date 2020/7/19 15:46
 * @Description: TODO
 */
@Service
public class NursePeojectServiceImpl  extends ServiceImpl<NurseProjectMapper, NurseProject>  implements NursePeojectService {
    @Autowired
    private  NurseProjectMapper  nurseProjectMapper;
    @Override
    public List<NurseProject> queryNurseProject(NurseProject nurseProject) {
        return nurseProjectMapper.queryNurseProject(nurseProject);
    }

    @Override
    public ResultBody addNurseProject(NurseProject nurseProject) {
        nurseProjectMapper.addNurseProject(nurseProject);
        return new ResultBody(CommonEnum.SUCCESS);
    }
}
